

public class VerifyAccountHandler extends MyHandler {

    public void doHandler(LoginUser loginUser) {

        if (null == loginUser.getLoginName()) {
            System.out.println("用户名不能为空");
            return;
        }

        if (null == loginUser.getPassword()) {
            System.out.println("密码不能为空");
            return;
        }

        if (!loginUser.getPassword().equals("123456")) {
            System.out.println("密码不正确");
        }

        System.out.println("账号密码校验通过");
        next.doHandler(loginUser);
    }
}